<html>
<head><meta charset="utf-8"><title>mimicking sccache locally · t-infra · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/index.html">t-infra</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/mimicking.20sccache.20locally.html">mimicking sccache locally</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="209522116"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/mimicking%20sccache%20locally/near/209522116" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/mimicking.20sccache.20locally.html#209522116">(Sep 09 2020 at 14:54)</a>:</h4>
<p>How can I setup sccache "like CI" locally so I can see if that's what causes ARM macOS to not work?</p>



<a name="209527742"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/mimicking%20sccache%20locally/near/209527742" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/mimicking.20sccache.20locally.html#209527742">(Sep 09 2020 at 15:31)</a>:</h4>
<p><span class="user-mention" data-user-id="116155">@Jake Goulding</span>  I would just run the install script (<a href="https://github.com/rust-lang/rust/blob/master/src/ci/scripts/install-sccache.sh">https://github.com/rust-lang/rust/blob/master/src/ci/scripts/install-sccache.sh</a>) and enable it in <code>config.toml</code> (<code>ccache = "sccache"</code>, or whever it is in your PATH). I'm not sure if it is necessary, but CI starts the server early with <code>SCCACHE_IDLE_TIMEOUT=10800 sccache --start-server</code>.</p>



<a name="209527977"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/mimicking%20sccache%20locally/near/209527977" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/mimicking.20sccache.20locally.html#209527977">(Sep 09 2020 at 15:33)</a>:</h4>
<p><code>curl -fo /usr/local/bin/sccache ...</code> Well, maybe not _actually_ run that.</p>



<a name="209540723"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/mimicking%20sccache%20locally/near/209540723" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/mimicking.20sccache.20locally.html#209540723">(Sep 09 2020 at 17:17)</a>:</h4>
<div class="codehilite"><pre><span></span><code>configure: build.configure-args := [&#39;--build=x86_64-apple-darwin&#39;, &#39;--host=aarch6 ...
</code></pre></div>


<p>But I _want_ all those configure options.... <span aria-label="cry" class="emoji emoji-1f622" role="img" title="cry">:cry:</span></p>



<a name="209544392"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/mimicking%20sccache%20locally/near/209544392" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/mimicking.20sccache.20locally.html#209544392">(Sep 09 2020 at 17:43)</a>:</h4>
<p>My sccache debug log is pretty empty...</p>



<a name="209544704"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/mimicking%20sccache%20locally/near/209544704" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/mimicking.20sccache.20locally.html#209544704">(Sep 09 2020 at 17:45)</a>:</h4>
<p>Oh. They changed the env var in not-yet-released code. Nice.</p>



<a name="209553922"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/mimicking%20sccache%20locally/near/209553922" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/mimicking.20sccache.20locally.html#209553922">(Sep 09 2020 at 19:05)</a>:</h4>
<div class="codehilite"><pre><span></span><code>sccache::server: moving into the shutdown phase now, waiting at most 10 seconds for all client requests to complete
</code></pre></div>


<p>I would not have expected sccache to just... shutdown.</p>



<a name="209650880"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/mimicking%20sccache%20locally/near/209650880" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/mimicking.20sccache.20locally.html#209650880">(Sep 10 2020 at 14:16)</a>:</h4>
<p><span class="user-mention" data-user-id="121055">@Pietro Albini</span> would it be a terrible idea to disable sccache in CI? Just for my job and just to determine if it’s the cause of the problem. Or is it potentially not possible to build within the time limit without It?￼￼￼</p>



<a name="209651060"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/mimicking%20sccache%20locally/near/209651060" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/mimicking.20sccache.20locally.html#209651060">(Sep 10 2020 at 14:17)</a>:</h4>
<p>oh it's definitely possible to build within the limit</p>



<a name="209651162"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/mimicking%20sccache%20locally/near/209651162" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/mimicking.20sccache.20locally.html#209651162">(Sep 10 2020 at 14:17)</a>:</h4>
<p>we do that when we bump llvm for example :)</p>



<a name="209651253"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/mimicking%20sccache%20locally/near/209651253" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/mimicking.20sccache.20locally.html#209651253">(Sep 10 2020 at 14:17)</a>:</h4>
<p>it's just slower</p>



<a name="209651432"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/mimicking%20sccache%20locally/near/209651432" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/mimicking.20sccache.20locally.html#209651432">(Sep 10 2020 at 14:18)</a>:</h4>
<p>feel free to do anything with that branch, up until we actually want to merge it :)</p>



<a name="209652014"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/mimicking%20sccache%20locally/near/209652014" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/mimicking.20sccache.20locally.html#209652014">(Sep 10 2020 at 14:20)</a>:</h4>
<p>I’m just worried that maybe it needs to also know about the target for whatever reason And needs to be updated before It could be used for us</p>



<a name="209652059"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/mimicking%20sccache%20locally/near/209652059" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/mimicking.20sccache.20locally.html#209652059">(Sep 10 2020 at 14:21)</a>:</h4>
<p>experiment as much as you want on that branch</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>